using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using SOEI.Solution.DomainEntities.RoomSourceVerifiyV1;

namespace SOEI.Solution.EntityFrameworkCore.EntityMapper
{
    public class CommissionContractMainBodyMapper : AbpBaseMapper, IEntityTypeConfiguration<CommissionContractMainBody>
    {
        public void Configure(EntityTypeBuilder<CommissionContractMainBody> builder)
        {
            builder.SetAttrbuteEntity();

            builder.HasIndex(zw => zw.WTHTBH);
            builder.HasKey(zw => new { zw.WTHTBH, zw.ZDMC });
        }
    }
}